package com.turkcell.dv.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "P_PROCESS")
public class BusinessProcessDOM implements java.io.Serializable {
	private static final long serialVersionUID = -2912839394081094877L;
	private Long id;
	private String name;
	private String url;

	public BusinessProcessDOM() {
	}

	@Id
	@Column(name = "ID", unique = true, nullable = false, precision = 5, scale = 0)
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "NAME", nullable = false, length = 45)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Column(name = "URL", nullable = false, length = 45)
	public String getURL() {
		return this.url;
	}

	public void setURL(String url) {
		this.url = url;
	}

	@Override
	public String toString() {
		return "id=" + id + ", name=" + name + ", url=" + url;
	}

}